﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MINICoffee.Model
{
    public class DigitalMsg
    {
        private static DigitalMsg instance;
        private DigitalMsg() { }
        public static DigitalMsg Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new DigitalMsg();
                }
                return instance;
            }
        }
        #region 输入数据
        /// <summary>
        /// 落杯 开
        /// </summary>
        public string Drop_Cup_start { get; set; } = "01 05 00 02 FF 00 2D FA";
        /// <summary>
        ///落杯 关
        /// </summary>
        public string Drop_Cup_end { get; set; } = "01 05 00 02 00 00 6C 0A";
        /// <summary>
        /// 机器人远程开机 开
        /// </summary>
        public string RobotPowerOn_start { get; set; } = "01 05 00 03 FF 00 7C 3A";
        /// <summary>
        /// 机器人远程开机 关
        /// </summary>
        public string RobotPowerOn_end { get; set; } = "01 05 00 03 00 00 3D CA";
        /// <summary>
        /// 推杆上升开
        /// </summary>
        public string PushRod_UP_start { get; set; } = "01 05 00 00 FF 00 8C 3A";// "01 05 00 04 FF 00 CD FB";
        /// <summary>
        /// 推杆下升关
        /// </summary>
        public string PushRod_UP_end { get; set; } = "01 05 00 00 00 00 CD CA";// "01 05 00 04 00 00 8C 0B";
        /// <summary>
        /// 推杆下降开
        /// </summary>
        public string PushRod_Down_start { get; set; } = "01 05 00 01 FF 00 DD FA";//"01 05 00 05 FF 00 9C 3B";
        /// <summary>
        /// 推杆下降关
        /// </summary>
        public string PushRod_Down_end { get; set; } = "01 05 00 01 00 00 9C 0A";//"01 05 00 05 00 00 DD CB";
        #endregion
        #region 查询数据
        /////// <summary>
        /////// 安全光栅
        /////// </summary>
        ////public string BANNER_Sel { get; set; } = "02 04 00 00 00 01 31 F9";
        /////// <summary>
        /////// 取杯成功检测
        /////// </summary>
        ////public string TakeCup_Sel { get; set; } = "02 04 00 01 00 01 60 39";
        /////// <summary>
        /////// 出餐杯子检测
        /////// </summary>
        ////public string OutMealCup_Sel { get; set; } = "02 04 00 02 00 01 90 39";
        /////// <summary>
        /////// 推杆上限检测
        /////// </summary>
        ////public string PushRodUP_Sel { get; set; } = "02 04 00 03 00 01 C1 F9";
        /////// <summary>
        /////// 推杆下限检测
        /////// </summary>
        ////public string PushRodDown_Sel { get; set; } = "02 04 00 04 00 01 70 38";
        /////// <summary>
        /////// 出餐门开到位
        /////// </summary>
        ////public string OutMealDoorUP_Sel { get; set; } = "02 04 00 05 00 01 21 F8";
        /////// <summary>
        /////// 出餐门关到位
        /////// </summary>
        ////public string OutMealDoorDown_Sel { get; set; } = "02 04 00 06 00 01 D1 F8";
        /////// <summary>
        /////// 电机原点检测1
        /////// </summary>
        ////public string MotorOriginalPoint1_Sel { get; set; } = "02 04 00 07 00 01 80 38";
        /////// <summary>
        /////// 电机上限检测1
        /////// </summary>
        ////public string MotorUP1_Sel { get; set; } = "02 04 00 08 00 01 B0 3B";
        /////// <summary>
        /////// 杯子供料检测1
        /////// </summary>
        ////public string CupFeed1_Sel { get; set; } = "02 04 00 09 00 01 E1 FB";
        /////// <summary>
        /////// 电机原点检测2
        /////// </summary>
        ////public string MotorOriginalPoint2_Sel { get; set; } = "02 04 00 0A 00 01 11 FB";
        /////// <summary>
        /////// 电机上限检测2
        /////// </summary>
        ////public string MotorUP2_Sel { get; set; } = "02 04 00 0B 00 01 40 3B";
        /////// <summary>
        /////// 杯子供料检测2
        /////// </summary>
        ////public string CupFeed2_Sel { get; set; } = "02 04 00 0C 00 01 F1 FA";
        /////// <summary>
        /////// 咖啡豆检测
        /////// </summary>
        ////public string CoffeeBean_Sel { get; set; } = "02 04 00 0D 00 01 A0 3A";
        /////// <summary>
        /////// 牛奶检测
        /////// </summary>
        ////public string Milk_Sel { get; set; } = "02 04 00 0E 00 01 50 3A";
        /////// <summary>
        /////// 水检测
        /////// </summary>
        ////public string Water_Sel { get; set; } = "02 04 00 0F 00 01 01 FA";
        /////// <summary>
        /////// 升杯按钮1
        /////// </summary>
        ////public string UPCupBtn1_Sel { get; set; } = "02 04 00 10 00 01 30 3C";
        /////// <summary>
        /////// 升杯按钮2
        /////// </summary>
        ////public string UPCupBtn2_Sel { get; set; } = "02 04 00 11 00 01 61 FC";
        public string AllMessage { get; set; } = "02 04 00 00 00 32 71 EC";
        ///// <summary>
        ///// 果糖检测2
        ///// </summary>
        //public string Fructose2_Sel { get; set; } = "02 04 00 12 00 01 91 FC";
        ///// <summary>
        ///// 果糖检测3
        ///// </summary>
        //public string Fructose3_Sel { get; set; } = "02 04 00 13 00 01 C0 3C";
        ///// <summary>
        ///// 升杯按钮1
        ///// </summary>
        //public string UPCupBtn1_Sel { get; set; } = "02 04 00 14 00 01 71 FD";
        ///// <summary>
        ///// 升杯按钮2
        ///// </summary>
        //public string UPCupBtn2_Sel { get; set; } = "02 04 00 15 00 01 20 3D";
        ///// <summary>
        ///// 牛奶检测小
        ///// </summary>
        //public string MilkMin_Sel { get; set; } = "02 04 00 16 00 01 D0 3D";
        #endregion
        #region 机器人输入数据
        #region 左臂
        /// <summary>
        /// 咖啡机开
        /// </summary>
        public string LRobot_KFJ_UP { get; set; } = "03 05 00 28 FF 00 0D D0";
        /// <summary>
        /// 咖啡机关
        /// </summary>
        public string LRobot_KFJ_Down { get; set; } = "03 05 00 28 00 00 4C 20";
        /// <summary>
        /// 去接杯开
        /// </summary>
        public string LRobot_QJB_UP { get; set; } = "03 05 00 29 FF 00 5C 10";
        /// <summary>
        /// 去接杯关
        /// </summary>
        public string LRobot_QJB_Down { get; set; } = "03 05 00 29 00 00 1D E0";
        /// <summary>
        /// 去检测点开
        /// </summary>
        public string LRobot_LBWC_UP { get; set; } = "03 05 00 2A FF 00 AC 10";
        /// <summary>
        ///去检测点关
        /// </summary>
        public string LRobot_LBWC_Down { get; set; } = "03 05 00 2A 00 00 ED E0";
        /// <summary>
        /// 接咖啡开
        /// </summary>
        public string LRobot_JBCGJC_UP { get; set; } = "03 05 00 2B FF 00 FD D0";
        /// <summary>
        /// 接咖啡关
        /// </summary>
        public string LRobot_JBCGJC_Down { get; set; } = "03 05 00 2B 00 00 BC 20";
        /// <summary>
        /// 接咖啡完成开
        /// </summary>
        public string LRobot_JKFWC_UP { get; set; } = "03 05 00 2C FF 00 4C 11";
        /// <summary>
        /// 接咖啡完成关
        /// </summary>
        public string LRobot_JKFWC_Down { get; set; } = "03 05 00 2C 00 00 0D E1";
        /// <summary>
        /// 去打印开
        /// </summary>
        public string LRobot_QDY_UP { get; set; } = "03 05 00 2D FF 00 1D D1";
        /// <summary>
        /// 去打印关
        /// </summary>
        public string LRobot_QDY_Down { get; set; } = "03 05 00 2D 00 00 5C 21";
        /// <summary>
        /// 打印完成开
        /// </summary>
        public string LRobot_DYWC_UP { get; set; } = "03 05 00 2E FF 00 ED D1";
        /// <summary>
        /// 打印完成关
        /// </summary>
        public string LRobot_DYWC_Down { get; set; } = "03 05 00 2E 00 00 AC 21";
        #region 多出来得东西
        ///// <summary>
        ///// 停止程序
        ///// </summary>
        //public string LRobot_Stop_UP { get; set; } = "03 05 00 2F FF 00 BC 11";
        ///// <summary>
        ///// 停止程序
        ///// </summary>
        //public string LRobot_Stop_Down { get; set; } = "03 05 00 2F 00 00 FD E1";
        ///// <summary>
        ///// 开始制作
        ///// </summary>
        //public string LRobot_Start_UP { get; set; } = "03 05 00 30 FF 00 8D D7";
        ///// <summary>
        ///// 开始制作
        ///// </summary>
        //public string LRobot_Start_Down { get; set; } = "03 05 00 30 00 00 CC 27";
        ///// <summary>
        ///// 取杯1
        ///// </summary>
        //public string LRobot_QB1_UP { get; set; } = "03 05 00 31 FF 00 DC 17";
        ///// <summary>
        ///// 取杯1
        ///// </summary>
        //public string LRobot_QB1_Down { get; set; } = "03 05 00 31 00 00 9D E7";
        ///// <summary>
        ///// 取杯2
        ///// </summary>
        //public string LRobot_QB2_UP { get; set; } = "03 05 00 32 FF 00 2C 17";
        ///// <summary>
        ///// 取杯2
        ///// </summary>
        //public string LRobot_QB2_Down { get; set; } = "03 05 00 32 00 00 6D E7";
        ///// <summary>
        ///// 杯检测
        ///// </summary>
        //public string LRobot_BJC_UP { get; set; } = "03 05 00 33 FF 00 7D D7";
        ///// <summary>
        ///// 杯检测
        ///// </summary>
        //public string LRobot_BJC_Down { get; set; } = "03 05 00 33 00 00 3C 27";
        ///// <summary>
        ///// 接咖啡
        ///// </summary>
        //public string LRobot_JKF_UP { get; set; } = "03 05 00 34 FF 00 CC 16";
        ///// <summary>
        ///// 接咖啡
        ///// </summary>
        //public string LRobot_JKF_Down { get; set; } = "03 05 00 34 00 00 8D E6";
        ///// <summary>
        ///// 咖啡完成
        ///// </summary> 
        //public string LRobot_KFWC_UP { get; set; } = "03 05 00 35 FF 00 9D D6";
        ///// <summary>
        ///// 咖啡完成
        ///// </summary>
        //public string LRobot_KFWC_Down { get; set; } = "03 05 00 35 00 00 DC 26";
        ///// <summary>
        ///// 去打印
        ///// </summary>
        //public string LRobot_DY_UP { get; set; } = "03 05 00 36 FF 00 6D D6";
        ///// <summary>
        ///// 去打印
        ///// </summary>
        //public string LRobot_DY_Down { get; set; } = "03 05 00 36 00 00 2C 26";
        ///// <summary>
        ///// 打印完成
        ///// </summary>
        //public string LRobot_DYWC_UP { get; set; } = "03 05 00 37 FF 00 3C 16";
        ///// <summary>
        ///// 打印完成
        ///// </summary>
        //public string LRobot_DYWC_Down { get; set; } = "03 05 00 37 00 00 7D E6";
        ///// <summary>
        ///// 出杯
        ///// </summary>
        //public string LRobot_CB_UP { get; set; } = "03 05 00 38 FF 00 0C 15";
        ///// <summary>
        ///// 出杯
        ///// </summary>
        //public string LRobot_CB_Down { get; set; } = "03 05 00 38 00 00 4D E5";
        ///// <summary>
        ///// 是否打印
        ///// </summary>
        //public string LRobot_SFDY_UP { get; set; } = "03 05 00 39 FF 00 5D D5";
        ///// <summary>
        ///// 是否打印
        ///// </summary>
        //public string LRobot_SFDY_Down { get; set; } = "03 05 00 39 00 00 1C 25";

        ///// <summary>
        ///// 是否打印牛奶
        ///// </summary>
        //public string LRobot_SFDYNN_UP { get; set; } = "03 05 00 3A FF 00 AD D5";
        ///// <summary>
        ///// 是否打印牛奶
        ///// </summary>
        //public string LRobot_SFDYNN_Down { get; set; } = "03 05 00 3A 00 00 EC 25";
        #endregion
        #endregion
        #endregion
        #region 机器人查询
        /// <summary>
        /// 到原点
        /// </summary>
        public string LRobot_DYD { get; set; } = "03 02 00 08 00 01 39 EA";
        /// <summary>
        /// 到达落杯器
        /// </summary>
        public string LRobot_DDLBQ { get; set; } = "03 02 00 09 00 01 68 2A";
        /// <summary>
        /// 到达检测点
        /// </summary>
        public string LRobot_DDJCD { get; set; } = "03 02 00 0A 00 01 98 2A";
        /// <summary>
        /// 接杯成功检测
        /// </summary>
        public string LRobot_JBCGJC { get; set; } = "03 02 00 0B 00 01 C9 EA";
        /// <summary>
        /// 到达咖啡机
        /// </summary>
        public string LRobot_DDKFJ { get; set; } = "03 02 00 0C 00 01 78 2B";
        /// <summary>
        /// 到达打印机
        /// </summary>
        public string LRobot_DDDYJ { get; set; } = "03 02 00 0D 00 01 29 EB";
        /// <summary>
        /// 交付完成
        /// </summary>
        public string LRobot_JFWC { get; set; } = "03 02 00 0E 00 01 D9 EB";
        /// <summary>
        /// 到原点
        /// </summary>
       // public string LRobot_DYD { get; set; } = "03 02 00 0F 00 01 88 2B";
        /// <summary>
        /// 出餐
        /// </summary>
        //public string LRobot_CC { get; set; } = "03 02 00 10 00 01 B9 ED";
        ///// <summary>
        ///// 左臂机器上电
        ///// </summary>
        //public string LRobot_JQSD { get; set; } = "03 02 00 11 00 01 E8 2D";
        ///// <summary>
        ///// 左臂出餐
        ///// </summary>
        //public string LRobot_YCC { get; set; } = "03 02 00 12 00 01 18 2D";
        ///// <summary>
        ///// 右臂机器上电
        ///// </summary>
        //public string RRobot_JQSD { get; set; } = "04 02 00 12 00 01 19 9A";
        #endregion
    }
}
